﻿<%@ Page Title="酒店住宿" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.travelhotel" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            $('#myTab a:first').tab('show');
            $('#mytab a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            });
        });

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage scenicpage">
        <div class="path" style="width: 668px;">您所在的位置：<a href="/">首页</a> &gt; <a href="travelindex.aspx">旅游指南</a> &gt; 酒店住宿 </div>
        <!-- 浮动块 -->
        <div class="scenicleft travelsleft">
            <ul class="travelstitle">
                <li><strong>酒店住宿</strong></li>
            </ul>

            <ul class="tglist">
                <%
                    if (data != null && data.Datas.Count > 0)
                    {
                        foreach (Wjtour.Domain.hotel item in data.Datas)
                        {
                %>
                <li>
                    <a href="travelhoteldetail.aspx?id=<%=item.id %>" target="_blank">
                        <%if (!string.IsNullOrEmpty(item.img))
                          { %>
                        <a href="travelhoteldetail.aspx?id=<%=item.id %>" target="_blank"><img src="<%=item.img %>" /></a>
                        <%} %>
                    </a>
                    <div class="baseinfo">
                        <h4><a href="travelhoteldetail.aspx?id=<%=item.id %>" target="_blank"><%=Utility.CutString(item.hotelname,9,false) %></a></h4>
                        <span>酒店星级：<%=Utility.GetStarHtml(item.hotelstar) %></span>
                        <p><%=Utility.CutString(Utility.StripHtml(item.introduce),68,true) %>&nbsp;<a href="travelhoteldetail.aspx?id=<%=item.id %>" target="_blank">[详情]</a></p>
                    </div>
                    <div class="readcount">
                        <span>￥</span><%=item.averageprice %><span>起</span>
                    </div>
                </li>
                <%
                        }
                    }%>
            </ul>
            <div class="clear"></div>
            <!-- 分页 -->
            <%=PagnationHtml %>
        </div>
        <!-- 侧面-->
        <div class="scenicright travelsright">
            <img src="css/images/title04.png" />
            <div class="title"></div>
            <ul class="arlist htlist">
                <%if (recommendHotels != null && recommendHotels.Count > 0)
                  {
                      foreach (var item in recommendHotels)
                      {
                %>
                <li>
                    <%if (!string.IsNullOrEmpty(item.img))
                      { %>
                    <img src="<%=item.img %>" class="hotelimg" />
                    <%}%>
                    <div>
                        <h5><a href="travelhoteldetail.aspx?id=<%=item.id %>" target="_blank"><%=Utility.CutString(item.hotelname,8,false) %></a></h5>
                        <span>星级：<%=Utility.GetStarHtml(item.hotelstar) %></span>
                    </div>
                </li>
                <%}
                  } %>
            </ul>

            <img src="css/images/guide.png" class="guide" />
            <img src="css/images/title05.png" style="margin-top: 12px;" />
            <div class="title"></div>
            <%if (recommendScenes != null && recommendScenes.Count > 0)
              {
                  var firstScene = recommendScenes.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstScene.img))
                  { %>
                <img src="<%=firstScene.img %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><a href="scenicdetail.aspx?id=<%=firstScene.id %>" target="_blank"><%=Utility.CutString(firstScene.scenename,9,false) %></a></h4>
                    <span>景区等级：<font color="#FF6600"><%=Utility.GetAHtml(firstScene.scenerank) %></font></span>
                </div>
            </div>
            <ul class="arlist">
                <%for (var i = 1; i < recommendScenes.Count; i++)
                  {
                      var scene = recommendScenes[i];
                %>
                <li><span></span><a href="scenicdetail.aspx?id=<%=scene.id %>" target="_blank"><%=Utility.CutString(scene.scenename,9,false) %></a></li>
                <%} %>
            </ul>
            <%} %>
            <div class="clear"></div>
            <h5 style="margin-top: 12px; display: block;">
                <img src="css/images/travelguide.png" />
                <span><a href="travelguide.aspx">MORE</a></span>
            </h5>
            <div class="title"></div>
            <%if (trafficGuides != null && trafficGuides.Count > 0)
              {
                  var first = trafficGuides.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(first.img))
                  { %>
                <img src="<%=first.img %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><a href="travelguideview.aspx?id=<%=first.id %>" target="_blank"><%=Utility.CutString(first.title,9,false) %></a></h4>
                    <span>作者：<%=first.author %></span>
                    <span class="goodnum">赞：<%=first.zan %></span>
                    <span class="readnum">浏览：<%=first.hits %></span>
                </div>
            </div>
            <ul class="arlist">
                <%for (var i = 1; i < trafficGuides.Count; i++)
                  {
                      var tg = trafficGuides[i];
                %>
                <li><span></span><a href="travelguideview.aspx?id=<%=tg.id %>" target="_blank"><%=Utility.CutString(tg.title,9,false) %></a></li>
                <%} %>
            </ul>
            <%} %>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
